<!-- [Left menu] start -->
<div class="leftmenu">

	<h1 id="pageinfo">Quick Launch</h1>
	
	<ul id="tabs" class="quickmenu">
		<li><a href="#one">Contact Details</a></li>
		<li><a href="#three">Notes</a></li>
		<li><a href="<?=site_url('contacts/import')?>">Import</a></li>
	</ul>
	<div class="quickend"></div>

</div>
<!-- [Left menu] end -->

<!-- [Content] start -->
<div class="content slim">

<script type="text/javascript">
function change_parent() {
	selected = document.getElementById('parent').selectedIndex;
	document.getElementById('pre_uri').innerHTML = '/'+document.getElementById('parent').options[selected].value;
}
</script>

<h1 id="edit">Update Contact</h1>
	
<form  action="<?=site_url('contacts/edit')?>" method="post" accept-charset="utf-8">
 	

	
		<br class="clearfloat" />

		<hr />

		<?php if ($notice = $this->session->flashdata('notification')):?>
		<p class="notice"><?=$notice;?></p>
		<?php endif;?>

<!-- Testing forms -->
						

<div id="container">


<form class="wufoo topLabel" enctype="multipart/form-data" method="post" action="">
	<div class="info">
	<h2>Contact Information</h2>
	</div>

		<ul>
			<li id="fo69li0" class="   " >
			<INPUT TYPE=hidden id="contact_id" NAME=contact_id VALUE="<?=$row->contact_id;?>">
			<label class="desc" id="title0" for="Field0">Name</label>

			<span><input id="first_name" name="first_name" class="field text" size="50" tabindex="1" value="<?=$row->first_name;?>"  />
				<label for="first_name">First</label></span>
			<span><input id="last_name" name="last_name" class="field text" size="50" tabindex="1" value="<?=$row->last_name;?>"  />
				<label for="last_name">Last</label></span>
			</li>					
			
			<li id="fo69li2" class="   " >

			<label class="desc" id="title2" for="Field2">Address</label>
	
<div class="address">
	<div>
		<input id="street1" name="street1" class="field text full addr" type="text" tabindex="3" value="<?=$row->street1;?>"  />
		<label for="street1">Street Address</label>
	</div>
	
	<div>
		<input id="street2" name="street2" class="field text full addr" type="text" tabindex="4" value="<?=$row->street2;?>"  />
		<label for="street2">Address Line 2</label>
	</div>
	
	<div class="left">
		<input id="city" name="city" class="field text full addr" type="text" tabindex="5" value="<?=$row->city;?>"  />
		<label for="city">City</label>
	</div>
	
	<div class="right">
		<input id="state" name="state" class="field text full addr" type="text" tabindex="6" value="<?=$row->state;?>"  />
		<label for="state">State / Province / Region</label>
	</div>
	
	<div class="left">
		<input id="zipcode" name="zipcode" class="field text full addr" type="text" maxlength="15" tabindex="7" value="<?=$row->zipcode;?>"  />
		<label for="zipcode">Postal / Zip Code</label>
	</div>
	
	<div class="right">
		<select class="field select full addr" id="country" name="country" tabindex="8" > 
			<option value="" selected="selected"></option>
		</select>
		<label for="country">Country</label>
	</div>
</div>
	
		
		
	</li>				
<!-- Begin Phone Number -->
<li class="leftHalf   " id="fo69li8" >
	
	<label class="desc" id="title8" for="Field8">Phone</label>
	
	<span>
		<input id="phone_work" name="phone_work" class="field text" size="50" type="text" maxlength="17" tabindex="9"value="<?=$row->phone_work;?>"  /> 
		<label for="phone_work">(###)###-####</label>
	</span>
	

		
</li>								
<!-- End Phone Number -->
<li id="fo69li9" class="rightHalf   " >
	
	<label class="desc" id="email" for="Field9">E-mail</label>
	
	<div>
		<input id="email" class="field text medium" name="email" tabindex="12" type="text" maxlength="255" value="<?=$row->email;?>"  /> 
	</div>
	
		
		
</li>					
<!-- Begin Secondary Phone -->
<li class="leftHalf   " id="fo69li12" >

	<label class="desc" id="title12" for="phone2">Cell Phone</label>
	
	<span>
		<input id="phone_mobile" name="phone_mobile" class="field text"  size="50" type="text" maxlength="17" tabindex="13" value="<?=$row->phone_mobile;?>"  />
		<label for="phone_mobile">(###)###-####</label>
	</span>
	



</li>

	
<!-- End Cell Phone -->				

<!-- Begin Fax -->
<li class="rightHalf   " id="fo69li13" >
	
		<label class="desc" id="title12" for="fax">Fax</label>
	
	<span>
		<input id="fax" name="fax" class="field text" size="50" type="text" maxlength="17" tabindex="13" value="<?=$row->fax;?>"  /> 
		<label for="fax">(###)###-####</label>
	</span>
	

		
	</li>

<!-- End Fax Number -->
<!-- Save for separate Notes tab 	
<li class="   " id="fo69li11" >
	
	<label id="title11" class="desc" for="notes">Notes</label>
	
	<div>
			<textarea id="notes" class="field textarea medium" name="notes" rows="10" cols="50" tabindex="20"  ></textarea>
	</div>
	
		
		
	</li> -->	
		<li class="buttons">
			<input id="saveForm" class="btTxt" type="submit" tabindex="21" value="Submit" />
			<input id="cancelForm" class="canbtTxt" type="submit" tabindex="22" value="Cancel" />
		</li>

</ul>
</form>

</div><!--container-->
<img id="bottom" src="<?php echo base_url()?>img/bottom.png" alt="" />

<!-- End Testing forms -->

</form>
<script>
	var tabs = new Control.Tabs('tabs',{
		defaultTab: 'last'
	})
	tabs.setActiveTab('one');
</script>

</div>


